/*
 *
 * Copyright (c) 2001-2018 泛微软件.
 * 泛微协同商务系统,版权所有.
 * 
 */
package com.engine.demo.cmd;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import weaver.conn.RecordSet;
import weaver.hrm.User;

import com.cloudstore.eccom.result.WeaResultMsg;
import com.engine.common.biz.AbstractCommonCommand;
import com.engine.common.entity.BizLogContext;
import com.engine.core.interceptor.CommandContext;


public class DoTestCmd extends AbstractCommonCommand<Map<String,Object>> {
private final static Log log = LogFactory.getLog(DoQueryDemoByID.class);
	
    private BizLogContext bizLogContext = new BizLogContext();

    public DoTestCmd(Map<String,Object> params,User user) {
        this.params = params;
        this.user = user;
    }

    @Override
    public BizLogContext getLogContext() {
        return null;
    }

    @Override
    public Map<String, Object> execute(CommandContext commandContext) {
    	WeaResultMsg result=new WeaResultMsg(true);
        RecordSet recordSet=new RecordSet();
        result.put("test1", "1234567");
        result.put("test2", "wwww");
        
        return result.success("ok").getResultMapAll();
    }

}
